function T = dynamic_g1_tt(T, y, x, params, steady_state, it_)
% function T = dynamic_g1_tt(T, y, x, params, steady_state, it_)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T             [#temp variables by 1]     double  vector of temporary terms to be filled by function
%   y             [#dynamic variables by 1]  double  vector of endogenous variables in the order stored
%                                                    in M_.lead_lag_incidence; see the Manual
%   x             [nperiods by M_.exo_nbr]   double  matrix of exogenous variables (in declaration order)
%                                                    for all simulation periods
%   steady_state  [M_.endo_nbr by 1]         double  vector of steady state values
%   params        [M_.param_nbr by 1]        double  vector of parameter values in declaration order
%   it_           scalar                     double  time period for exogenous variables for which
%                                                    to evaluate the model
%
% Output:
%   T           [#temp variables by 1]       double  vector of temporary terms
%

assert(length(T) >= 83);

T = bbeffectivedemandmatchirf_order3.dynamic_resid_tt(T, y, x, params, steady_state, it_);

T(38) = (-y(10))/(y(1)*y(1));
T(39) = T(4)*T(5)*T(38);
T(40) = T(39)/T(16);
T(41) = getPowerDeriv(T(17),T(6),1);
T(42) = getPowerDeriv(y(10)*T(4)*T(5),T(6),1);
T(43) = params(24)*T(4)*T(5)*T(42);
T(44) = getPowerDeriv(T(8),T(9),1);
T(45) = 1/y(1);
T(46) = T(4)*T(5)*T(45);
T(47) = T(46)/T(16);
T(48) = getPowerDeriv(y(2),params(6),1);
T(49) = T(15)*T(48);
T(50) = T(16)*T(16);
T(51) = (-(T(13)*T(49)))/T(50);
T(52) = 1/y(11);
T(53) = getPowerDeriv(y(11),params(6),1);
T(54) = params(24)*T(42)*T(5)*y(10)*T(53);
T(55) = T(12)*T(5)*T(53)/T(16);
T(56) = (-y(2))/(y(11)*y(11));
T(57) = (-(1/y(22)));
T(58) = (-T(20))/(y(3)*y(3));
T(59) = getPowerDeriv(T(21),1-T(7),1);
T(60) = T(58)*T(59);
T(61) = params(2)*getPowerDeriv(y(17),T(7),1);
T(62) = 1/y(4);
T(63) = 2*(y(18)/y(4)-params(3));
T(64) = 1/y(19);
T(65) = getPowerDeriv(y(30)*y(4),params(1),1);
T(66) = (-y(18))/(y(4)*y(4));
T(67) = (-y(42))/(y(19)*y(19));
T(68) = (-(getPowerDeriv(1-y(5),1-params(6),1)));
T(69) = T(14)*T(68);
T(70) = (-(T(13)*T(69)))/T(50);
T(71) = getPowerDeriv(y(36)*y(21),1-params(1),1);
T(72) = (-(getPowerDeriv(1-y(21),1-params(6),1)));
T(73) = T(12)*T(4)*T(72)/T(16);
T(74) = 1/params(38);
T(75) = getPowerDeriv(y(44),(-1),1);
T(76) = y(47)*y(26)*T(75);
T(77) = getPowerDeriv(y(32),1-params(9),1);
T(78) = T(77)/y(3);
T(79) = T(59)*T(78);
T(80) = (-y(35))/(y(8)*y(8));
T(81) = 1/y(8);
T(82) = (-y(50))/(y(35)*y(35));
T(83) = 1/y(35);

end
